package com.myblog.Mapper;


import com.myblog.po.Type;
import com.myblog.vo.TypeQuery;
import org.apache.ibatis.annotations.Mapper;

import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface typemapper {


    void saveType(Type type);



    Type getType(Long id);


    Type getTypeByName(String name) ;


    List<Type> listtype();



    void updateType(Type type) ;


    public void deleteType(Long id) ;


    public long Counttype() ;

   List<TypeQuery> listTypeTop();




}
